package com.pkx.cloud.fse7.dms.device.feign;

import com.alibaba.fastjson.JSONObject;
import com.pkx.cloud.fse7.dms.device.entity.Device;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "device",url = "http://192.168.3.42:60009/api/DmsDevice")
public interface DeviceFeign {
    @PutMapping("/Modify")
    String update(@RequestBody Device device);
    @PostMapping("/Add")
    String add(@RequestBody Device device);
    @PostMapping("/DeleteFunc")
    String delete( @RequestParam(value = "condition",required = false)String condition);

}
